﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowElementGrid.aspx.cs"
    Inherits="FantastPlatform.Decision.UI.FlowElementGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var feg = new FantastPlatform.UI.FlowElementGrid({
            renderTo: 'feg_div',
            FlowId: '<%=GetId() %>',
            url: '../Service/FlowElementViewService.aspx?Action=Search&flowId=' + '<%=GetId() %>',
            width: tabs.getInnerWidth() - 5,
            height: tabs.getInnerHeight() - 5,
            level: 0,
            border: false,
            tbar: [{
                text: '新增警力分配',
                iconCls: 'add',
                tooltip: {
                    text: '新增警力分配',
                    autoHide: true
                },
                handler: function () { feg.onAddFlowElementClick(feg.FlowId, feg.level); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的应急预案',
                    autoHide: true
                },
                handler: function () { feg.onEditFlowElementClick(); }
            }, '-', {
                text: '查询',
                iconCls: 'search',
                tooltip: {
                    text: '按照条件查询应急预案',
                    title: '查询通知',
                    autoHide: true
                },
                handler: function () { feg.onSearchClick(); }
            }, '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的应急预案',
                    title: '删除通知',
                    autoHide: true
                },
                handler: function () { feg.onDeleteClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '重新更新列表内容',
                    title: '列表刷新',
                    autoHide: true
                },
                handler: function () { feg.onUpdataFlowElementClick(feg.level); }
            }]
        });
        feg.addListener('rowdblclick', function () { feg.onEditFlowElementClick(); });
        feg.onUpdataFlowElementClick(1);
    </script>
</head>
<body>
    <div id="feg_div">
    </div>
</body>
</html>
